package com.ruoyi.core.mapper;

import com.ruoyi.core.domain.BatchClientUserSummary;
import com.ruoyi.core.domain.custombean.ClientUserBatchQuery;
import com.ruoyi.core.domain.custombean.ClientUserBatchQueryResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Company: 北京卡拉卡尔股份技术有限公司
 * @Author: Darren Ho
 * @Date: 10/16/2020 17:19
 */
public interface BatchClientUserSummaryMapper {

    int insert(BatchClientUserSummary batchClientUserSummary);

    List<BatchClientUserSummary> findByBatchClientUserSummary(BatchClientUserSummary batchClientUserSummary);

    List<BatchClientUserSummary> findByIdSet(Long[] ids);

    int deleteByIdSet(Long[] ids);

    List<ClientUserBatchQueryResult> findBatchClientUser(ClientUserBatchQuery clientUserBatchQuery);

    List<ClientUserBatchQueryResult> findClientUserByUserIdSet(Long[] ids);

    BatchClientUserSummary findByUserId(Long userId);

    BatchClientUserSummary findById(Long id);

    int updateStatus(@Param("id") Long id, @Param("status") Integer status);

}
